#ifndef _MATH_SPRING_H_
#define _MATH_SPRING_H_

#include "vec2.h"

namespace math
{
class Spring
{
public:
	Spring(float TargetDist = 1.0f, float Strength=1.0f);
	~Spring();
	math::Vec2		GetForce(const math::Vec2& From, const math::Vec2& To);
	math::Vec2		GetPositiveForce(const math::Vec2& From, const math::Vec2& To);
	float			m_TargetLength, m_Strength;
};

} // end namespace math

#endif // _MATH_SPRING_H_